package com.mslinn.yumifier.model {
    import mx.collections.ArrayCollection;


    /** Value object for service */
    [Bindable] public class Service {
        public var name:String;
        public var href:String;

        public function Service(name:String, href:String) {
            this.name = name;
            this.href = href;
        }
        
        public function clone():Service {
            return new Service(new String(name), new String(href));
        }
        
        public function set displayName(ignored:String):void {}
        
        public function get displayName():String {
            if (name.length>0)
                return name;
            return href;
        }
    }
}